<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>select2</title>
    <link rel="stylesheet" href="https://tstatic.dgg.net/static/plugs/layui/css/layui.min.css">
    <link rel="stylesheet" href="https://tstatic.dgg.net/static/css/dgg-iboss.min.css">
    <link rel="stylesheet" href="https://tstatic.dgg.net/static/css/dgg-plugs.min.css">
    <!--<link rel="stylesheet" href="https://tstatic.dgg.net/static/plugs/select2/css/select2.min.css">-->
</head>
<body>
单选：<select name="" id="select-one">
    <option value=""></option>
    <option value="0">我是单选</option>
    <option value="1">选择</option>
    <option value="2">测试</option>
    <option value="3">test</option>
</select>
多选：<select name="" id="select-multi" multiple>
</select>
<script src="https://tstatic.dgg.net/static/plugs/jquery/jquery-1.9.1.min.js"></script>
<script src="https://tstatic.dgg.net/static/plugs/select2/js/select2.min.js"></script>
<script>
    $(function () {
        $("#select-one").select2({
            width:'200px',
            placeholder: '请选择',
            allowClear: true
        })
        $("#select-multi").select2({
            width:'200px',
            // tags:true,
            // placeholder: '请选择',
            // allowClear: true
        })
    })
</script>
</body>
</html>